#include "maindlg.h"
#include <QApplication>
#include <QTranslator>

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);

    QApplication a(argc, argv);
    QDir::setCurrent(QApplication::applicationDirPath());
    QTranslator trans;
    trans.load("qt_zh_CN.qm","./translations/");
    a.installTranslator(&trans);
    QWebEngineSettings::defaultSettings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);

    MainDlg w;
    w.show();

    return a.exec();
}
